package cn.tedu.inner;

//测试 匿名内部类
//抽象类
public class Test3_Inner {
    public static void main(String[] args) {
        new Demo(){

            @Override
            public void test() {
                System.out.println("test()");
            }
        }.test();
    }
}
abstract class Demo{
    public int age;
    public void show(){
        System.out.println("show()");
    }
    abstract public void test();
}
class Demo2 extends Demo{

    @Override
    public void test() {
        System.out.println("test()");
    }
}